<template>
    <div class='play'>
        <div class="header">
            <div class="header-left">
                <van-icon name="apps-o" size="22"/>
            </div>
            <div class="header-mid">
                <router-link to="/play/listen" class="spacing">听听</router-link>
                <router-link to="/play/recommend" class="spacing">推荐</router-link>
                <router-link to="/play/classify" class="spacing">分类</router-link>
            </div>
            <div class="header-right">
                <van-icon name="ellipsis" size="22"/>
            </div>
        </div>
        <router-view></router-view>
    </div>
</template>

<script>
export default {
    
    data() {
        
        return {
            
        };
    },
    computed: {},
    watch: {},
    
    methods: {

    },
    created() {
        
    },
    mounted() {
        
    },
    components: {},
    }
</script>
<style scoped>
.header{
    width: 100%;
    height: 45px;
    display: flex;
    line-height: 45px;
    text-align: center;
}
.header-left{
    width: 10%;
    padding-left: 10px;
}
.header-right{
    width: 10%;
    padding-right: 10px;
}
.header-mid{
    flex: 1;
}
.spacing{
    padding: 0 10px;
}
.active {
  font-size: 17px;
  font-weight: bold;
  position: relative;
}
.active::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 9px;
  width: 36px;
  height: 5px;
  border-radius: 5px;
  background: red;
}

</style>